import http from './interface'

//设置请求前拦截器
http.interceptor.request = (config) => {
	config.header = {
	}
}

export const baseUrl = http.config.baseUrl

export const queryCompany = (data) => {
  return http.request({
      url: 'api/company/getCompany',
      data,
  })
}

export const queryCompanyDetail = (data) => {
  return http.request({
      url: 'api/company/getCompanyView',
      data,
  })
}

//公司评论基本信息
export const queryRemarkInfo = (data) => {
  return http.request({
      url: 'api/company/getCommentList',
      data,
  })
}

//公司评论列表
export const queryRemark = (data) => {
  return http.request({
      url: 'api/company/getCommentList2',
      data,
  })
}

//公司评论详情
export const queryRemarkDetail = (data) => {
  return http.request({
      url: 'api/company/getComment',
      data,
  })
}

// 公司面试列表
export const queryInterview = (data) => {
  return http.request({
      url: 'api/company/getMianshiList',
      data,
  })
}

// 公司面试详情
export const queryInterviewDetail = (data) => {
  return http.request({
      url: 'api/company/getMianshiDetail',
      data,
  })
}

//公司面试职位
export const queryInterviewPosition = (data) => {
  return http.request({
      url: 'api/company/getMianshiZhiwei',
      data,
  })
}

//公司工资
export const queryWage = (data) => {
  return http.request({
      url: 'api/company/getGongzi',
      data,
  })
}

//登陆
export const login = (data) => {
  return http.request({
      url: 'api/weixin/login',
      data,
  })
}

//获取用户信息
export const userInfo = (data) => {
  return http.request({
      url: 'api/user/user_center',
      data,
  })
}

//获取需支付费用
export const queryPayCard = (data) => {
  return http.request({
      url: 'api/system/get_card_list',
      data,
  })
}

//下单
export const takeOrder = (data) => {
  return http.request({
      url: 'api/system/post_mini_order',
	  method: 'POST',
      data,
  })
}



// 默认全部导出  import api from '@/common/vmeitime-http/'
export default {
	baseUrl,
	login,
	userInfo,
	queryCompany,
	queryCompanyDetail,
	queryRemarkInfo,
	queryRemark,
	queryRemarkDetail,
	queryInterview,
	queryInterviewPosition,
	queryInterviewDetail,
	queryWage,
	queryPayCard,
	takeOrder
}